\hypertarget{classbrtr_1_1_train_switcher_callback}{\section{brtr\+:\+:Train\+Switcher\+Callback Class Reference}
\label{classbrtr_1_1_train_switcher_callback}\index{brtr\+::\+Train\+Switcher\+Callback@{brtr\+::\+Train\+Switcher\+Callback}}
}


Callback for switching the \char`\"{}trains\char`\"{}.  




{\ttfamily \#include $<$Train\+Switcher\+Callback.\+h$>$}

Inheritance diagram for brtr\+:\+:Train\+Switcher\+Callback\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classbrtr_1_1_train_switcher_callback}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classbrtr_1_1_train_switcher_callback_a54ad53b07976bf34af2a0e6061088f3c}{Train\+Switcher\+Callback} ()
\item 
virtual void \hyperlink{classbrtr_1_1_train_switcher_callback_a5a8182c650febc07a8443f6a35c32087}{operator()} (osg\+::\+Node $\ast$node, osg\+::\+Node\+Visitor $\ast$nv)
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{classbrtr_1_1_train_switcher_callback_ac87e64555ad379814a93220447c49257}{\+\_\+cur\+Active\+Train}
\item 
int \hyperlink{classbrtr_1_1_train_switcher_callback_a1d2fbe75d19ca03cba449cdf4277f0eb}{\+\_\+delta\+Time}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Callback for switching the \char`\"{}trains\char`\"{}. 

every $\sim$36 secs the \char`\"{}train\char`\"{} on the rails switched \begin{DoxyAuthor}{Author}
Gleb Ostrowski 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}
1.\+0 
\end{DoxyVersion}
\begin{DoxyDate}{Date}
2014 
\end{DoxyDate}
\begin{DoxyPrecond}{Precondition}
needs to be attached to a switch node 
\end{DoxyPrecond}
\begin{DoxyCopyright}{Copyright}
G\+N\+U Public License. 
\end{DoxyCopyright}


Definition at line \hyperlink{_train_switcher_callback_8h_source_l00015}{15} of file \hyperlink{_train_switcher_callback_8h_source}{Train\+Switcher\+Callback.\+h}.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{classbrtr_1_1_train_switcher_callback_a54ad53b07976bf34af2a0e6061088f3c}{\index{brtr\+::\+Train\+Switcher\+Callback@{brtr\+::\+Train\+Switcher\+Callback}!Train\+Switcher\+Callback@{Train\+Switcher\+Callback}}
\index{Train\+Switcher\+Callback@{Train\+Switcher\+Callback}!brtr\+::\+Train\+Switcher\+Callback@{brtr\+::\+Train\+Switcher\+Callback}}
\subsubsection[{Train\+Switcher\+Callback}]{\setlength{\rightskip}{0pt plus 5cm}brtr\+::\+Train\+Switcher\+Callback\+::\+Train\+Switcher\+Callback (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classbrtr_1_1_train_switcher_callback_a54ad53b07976bf34af2a0e6061088f3c}


Definition at line \hyperlink{_train_switcher_callback_8cpp_source_l00004}{4} of file \hyperlink{_train_switcher_callback_8cpp_source}{Train\+Switcher\+Callback.\+cpp}.



\subsection{Member Function Documentation}
\hypertarget{classbrtr_1_1_train_switcher_callback_a5a8182c650febc07a8443f6a35c32087}{\index{brtr\+::\+Train\+Switcher\+Callback@{brtr\+::\+Train\+Switcher\+Callback}!operator()@{operator()}}
\index{operator()@{operator()}!brtr\+::\+Train\+Switcher\+Callback@{brtr\+::\+Train\+Switcher\+Callback}}
\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}void brtr\+::\+Train\+Switcher\+Callback\+::operator() (
\begin{DoxyParamCaption}
\item[{osg\+::\+Node $\ast$}]{node, }
\item[{osg\+::\+Node\+Visitor $\ast$}]{nv}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{classbrtr_1_1_train_switcher_callback_a5a8182c650febc07a8443f6a35c32087}


Definition at line \hyperlink{_train_switcher_callback_8cpp_source_l00008}{8} of file \hyperlink{_train_switcher_callback_8cpp_source}{Train\+Switcher\+Callback.\+cpp}.



\subsection{Member Data Documentation}
\hypertarget{classbrtr_1_1_train_switcher_callback_ac87e64555ad379814a93220447c49257}{\index{brtr\+::\+Train\+Switcher\+Callback@{brtr\+::\+Train\+Switcher\+Callback}!\+\_\+cur\+Active\+Train@{\+\_\+cur\+Active\+Train}}
\index{\+\_\+cur\+Active\+Train@{\+\_\+cur\+Active\+Train}!brtr\+::\+Train\+Switcher\+Callback@{brtr\+::\+Train\+Switcher\+Callback}}
\subsubsection[{\+\_\+cur\+Active\+Train}]{\setlength{\rightskip}{0pt plus 5cm}int brtr\+::\+Train\+Switcher\+Callback\+::\+\_\+cur\+Active\+Train\hspace{0.3cm}{\ttfamily [private]}}}\label{classbrtr_1_1_train_switcher_callback_ac87e64555ad379814a93220447c49257}


Definition at line \hyperlink{_train_switcher_callback_8h_source_l00021}{21} of file \hyperlink{_train_switcher_callback_8h_source}{Train\+Switcher\+Callback.\+h}.

\hypertarget{classbrtr_1_1_train_switcher_callback_a1d2fbe75d19ca03cba449cdf4277f0eb}{\index{brtr\+::\+Train\+Switcher\+Callback@{brtr\+::\+Train\+Switcher\+Callback}!\+\_\+delta\+Time@{\+\_\+delta\+Time}}
\index{\+\_\+delta\+Time@{\+\_\+delta\+Time}!brtr\+::\+Train\+Switcher\+Callback@{brtr\+::\+Train\+Switcher\+Callback}}
\subsubsection[{\+\_\+delta\+Time}]{\setlength{\rightskip}{0pt plus 5cm}int brtr\+::\+Train\+Switcher\+Callback\+::\+\_\+delta\+Time\hspace{0.3cm}{\ttfamily [private]}}}\label{classbrtr_1_1_train_switcher_callback_a1d2fbe75d19ca03cba449cdf4277f0eb}


Definition at line \hyperlink{_train_switcher_callback_8h_source_l00022}{22} of file \hyperlink{_train_switcher_callback_8h_source}{Train\+Switcher\+Callback.\+h}.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
header/\hyperlink{_train_switcher_callback_8h}{Train\+Switcher\+Callback.\+h}\item 
Callbacks/\hyperlink{_train_switcher_callback_8cpp}{Train\+Switcher\+Callback.\+cpp}\end{DoxyCompactItemize}
